package renderer;

public class Renderer{
	private Window window;
	public Screen screen;
	
	public Renderer(){
		screen = new Screen();
		window = new Window(screen);
	}
		
	public void DrawObject(RenderObject obj){
		screen.DrawObject(obj);
//		System.out.println("drawing!");
	}
		
	public void SwapBuffers(){
		//System.out.println("Swapping the imaginary buffers!");
		screen.repaint();
	}
	
	public void Close() {
		window.dispose();
	}
	
}
